/**
 * 
 */
package de.fsujena.chat_pi.message;

/**
 * Representation of a text message.
 * 
 * @author Erik Hebestreit
 * @see Message
 */
public class TextMessage extends Message {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2002031378138270530L;
	
	private String messageText;

	/**
	 * Constructor.
	 */
	public TextMessage() {
		super.setExpectAcknoledgement(true);
	}

	/**
	 * Constructor
	 * 
	 * @param messageText actual text of the message
	 */
	public TextMessage(String messageText) {
		this.setMessageText(messageText);
		super.setExpectAcknoledgement(true);
	}

	/**
	 * @return actual text of the message
	 */
	public String getMessageText() {
		return messageText;
	}

	/**
	 * @param messageText actual text of the message
	 */
	public void setMessageText(String messageText) {
		this.messageText = messageText;
	}

}
